package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season s=Season.AUTUMN;
        System.out.println(s.getSeasonDesc());
       Season[] seasons=Season.values();
       for(int i=0;i<seasons.length;i++){
           System.out.println(seasons[i]);
           System.out.println(seasons[i].getSeasonDesc());
           System.out.println(seasons[i].getSeasonName());
       }
       Season S= Season.SPRING;
       System.out.println(S.getSeasonName()+""+S.getSeasonDesc());
       switch(S){
           case SPRING:
               System.out.println("天气"+S.getSeasonDesc()+"放风筝");
               break;
           case SUMMER:
               System.out.println("天气"+S.getSeasonDesc()+"去洗澡");
               break;
           case AUTUMN:
               System.out.println("天气"+S.getSeasonDesc()+"秋游");
               break;
           case WINTER:
               System.out.println("天气"+S.getSeasonDesc()+"打雪仗");
               break;
       }











    }
}
